Basic demo of DBWeb controls.
- Uses a DataSet which is not connected to a back end. Instead,
the data is loaded at run time. Warning: as a result, you cannot see the data
at design time.
- Application assumes user has read-write rights to directory. If
not, applyChanges will fail with an error.
- The GetXmlFile method shows how to access the physical
directory for the virtual path.
- The Page_Load event shows how to load an xml file into a
DataSet for use by DB Web controls.
- The OnApplyChangesRequest event shows how to update changes to
the xml file. Note that if the xml file does not exist, this code will create
one. (However, the attached xml file is needed for the Continent Dropdown.)
-
The following controls are used:
- DBWebNavigator: for navigation, inserting, deleting,
and applying changes.
- DBWebLabeledTextBox: for editing COUNTRY and CAPITAL
columns.
- DBWebDropDown: for editing CONTINENT column. Values are
taken from those CONTINENTS table in the Countries.xml file.
- DBWebCalendar: for editing the DateVisited Data-Time
column.
- DBWebMemo: for editing the Comments fiel
- DBWebCheckBox: for editing the boolean SECURITYRISK
column.